/**
 * 
 * 
 * @param {number[]} nums
 * @return {void} Do not return anything, modify nums in-place instead.
 */
 var sortColors = function(nums) {
    for(let i = 0;i<nums.length-1;i++){
      for(let j=i+1;j<nums.length;j++){
        if(nums[j]<nums[i]){
          let temp = nums[j]
          nums[j] = nums[i]
          nums[i] = temp
        }
      }
    }
    // console.log(num);
    return nums
};

console.log(sortColors([2,0,1]));